.page {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;


  .bg-text {
    width: 100%;
    height: 10vh;
    padding: 0 3vw;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url(/src/assets/images/top-bg.jpg) no-repeat center;
    background-size: cover;

    .bg-text-l {
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .bg-texts {
        font-size: 24px;
        color: #6769fb;
        font-weight: 600;
        margin-left: 1vw;
      }

      img {
        width: 48px;
        height: 32px;
      }
    }
  }
}

#canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.title {
  font-size: 1.8vw;
  /* 使用vw单位使字体大小随视口大小变化 */
  color: black;
  padding: 0.6vw 0;
  /* 使用vw单位使内边距随视口大小变化 */
  box-sizing: border-box;
}

.header {
  width: 100%;
  height: 6.3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;

  .addNode,
  .deleteNode,
  .editNode,
  .resetNode {
    width: 100px;
    height: 35px;
    border-radius: 25px;
    // padding-left: 0.8vw;
    padding: 0 1.5vw;
    box-sizing: border-box;
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    margin-left: 1.4vw;

  }

  .addNode:hover,
  .deleteNode:hover,
  .editNode:hover,
  .resetNode:hover {
    cursor: pointer;
  }

  .addNode {
    margin-left: 0;
    background: #6769fb;

    .header-text {
      color: white;
    }
  }

  .btn1 {
    background-color: #1FB6FB;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  }

  .btn2 {
    background-color: #F4AD39;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  }

  .btn3 {
    background-color: #F1632B;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  }


  .header-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
  }

  .header-ioc {
    width: 12px;
    /* 使用vw单位使宽度随视口大小变化 */
    height: 12px;
    /* 使用vw单位使高度随视口大小变化 */
  }
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10vw;
  box-sizing: border-box;
  position: relative;
}

.content-l {
  width: 100%;
}

.main {
  height: 90vh;
  width: 100%;
  background: url(/src/assets/images/main-bg.jpg) no-repeat center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.body {
  height: 40vh;
  margin-top: 2vw;
  width: 100%;
  position: relative;

  .client-item-none {
    width: 6vw;
    height: 6vw;
  }

  .withe-radio {
    width: 80%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .client-descriptionOne,
  .client-descriptionTwo {
    color: #43447a;
    font-size: 1vw;
    font-weight: bold;
  }

  .client-title {
    width: 100%;
    height: 20px;
    display: flex;
    border-radius: 2vw;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    background-color: #D6EBFB;
  }

  .client-item {
    width: 24vw;
    height: 12vw;
    background: #438ded;
    border-radius: 12px;
    padding: 0.8vw 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: 0.85vw;
    position: relative;
    z-index: 101;

    .mask {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      position: absolute;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.4);
      z-index: 80;
    }

    .delete_btn {
      position: absolute;
      top: calc(50% - 3vw);
      left: calc(50% - 3vw);
      width: 6vw;
      height: 6vw;
      background: white;
      text-align: center;
      line-height: 8vw;
      border-radius: 50%;
      z-index: 102;
    }

    .client-up-arrow {
      width: 18px;
      height: 18px;
      border-radius: 50%;
    }

    // .client-up-arrow:hover {
    //   box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.3);
    // }

    .client-item-title:hover {
      box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.2);
      color: #6351e5;
      font-weight: bold;
    }

    .client-item-title {
      width: 3.5vw;
      height: 1vw;
      background: white;
      text-align: center;
      line-height: 1vw;
      border-radius: 4vw;
      color: #6351e5;
      font-size: 16px;
    }

    .topic-pupop:hover {
      box-shadow: 0 0.2vw 0.5vw rgba(0, 0, 0, 0.3);
      /* 添加阴影效果 */
    }

    .topic-pupop {
      position: absolute;
      top: -7vw;
      left: 6vw;
      width: 18vw;
      padding: 12px;
      background: white;
      box-shadow: 0 0.4vw 0.7vw rgba(0, 0, 0, 0.1);
      border-radius: 10px;
      z-index: 999;

      .topic-pupop-l {
        width: 90%;
        height: 40%;
        color: #6769fb;
        background: rgba(103, 105, 251, 0.2);
        text-align: center;
        line-height: 1.0417vw;
        // border: 0.001vw dashed black;
        border: none;
        /* 去掉边框 */
        outline: none;
        /* 去掉聚焦时的外边框 */
        padding: 0;
        /* 去掉内边距 */
        font-size: 16px;
        box-sizing: border-box;
        border-radius: 0.2vw;
      }

      .topic-pupop-content {
        width: 90%;
        height: 30%;
        // margin: 0.2604vw 0;
        background: #6769fb;
        margin: 0 0.4vw;
        box-sizing: border-box;
        border-radius: 0.6vw;
        position: relative;

        .topic-pupop-title {
          color: white;
          font-size: 12px;
          text-align: center;
          padding: 6px 10px;
          border-radius: 0.3vw;

        }

        .topic-pupop-title:hover {
          cursor: pointer;
        }

        .topic-pupop-r {
          position: absolute;
          right: 10%;
          top: 25%;
          width: 12px;
          height: 12px;
          background-image: url(./assets/images/up_arrow1.png);
          background-size: contain;
          background-repeat: no-repeat;
        }
      }

      .topic-pupop-text {
        color: #73739f;
        font-size: 12px;
        margin: 0.2vw 0;
      }
    }
  }

  .client-item:nth-of-type(1) {
    position: absolute;
    left: 0;
    top: 0;
  }

  .client-item:nth-of-type(2) {
    position: absolute;
    right: 0;
    top: 0;
  }

  .client-item:nth-of-type(3) {
    position: absolute;
    left: 0;
    bottom: 0;
  }

  .client-item:nth-of-type(4) {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .server-item {
    width: 16vw;
    height: 100%;
    background: #9267F4;
    border-radius: 10px;
    padding: 18px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    font-size: 0.85vw;
    color: #fff;
    position: absolute;
    left: calc(50% - 8vw);
    top: 0;
    z-index: 101;

    .server-up-arrow {
      width: 1vw;
      height: 1vw;
    }

    .server-item-title {
      text-align: center;
      color: #fff;
      font-size: 16px;
    }

    .server-item-border {
      width: 5vw;
      height: 2.5vw;
      box-sizing: border-box;
      padding: 0.2vw 0;
      border-radius: 4vw;
      background: #fff;
      color: #43447a;
      font-size: 16px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      flex-direction: column;
    }
  }
}

.line-server {
  font-size: 12px;
  width: 80%;
  height: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #D8CDF9;
  border-radius: 9999px;
  color: #222;
  font-weight: 600;
}

.content-r {
  display: flex;
  justify-content: center;
  margin-bottom: 5vh;

  .popup-response {
    width: 80%;
    border-radius: 0.4vw;
    padding: 1vw 1.2vw;
    box-sizing: border-box;
    background-color: #cddcf5;
  }

  .rules {
    .rule-title {
      height: 1.5vw;
      //   background: #a97aff;
      border-radius: 0.2vw;
      font-weight: bold;
      font-size: 12px;
      color: #43447a;
      text-align: left;
      line-height: 1.5vw;
      //   padding-left: 2vw;
    }

    .rule-title::before {
      content: "";
      display: inline-block;
      width: 0.5vw;
      height: 0.5vw;
      margin: 0 0.4vw;
      border-radius: 50%;
      background: #6769fb;
    }

    .bg-rule {
      background: #f5f6f8;
      width: 100%;
      height: 100%;
      padding: 0.3vw 0.6vw 0.5vw 0.6vw;
      box-sizing: border-box;
      border-radius: 0.5vw;
    }

    .title-box {
      margin-top: 0.1vw;
      display: flex;
      justify-content: space-between;
      color: #43447a;
      font-size: 0.65vw;
      font-weight: bold;

      .title-request,
      .title-response {
        // background: #c5cdf9;
        width: 9.6vw;
        height: 1.55vw;
        text-align: center;
        line-height: 1.55vw;
      }
    }

    .rule-contentList {
      .rule-item {
        margin-top: 0.3vw;
        display: flex;
        justify-content: space-between;
        color: #6351e5;
        font-size: 0.7vw;
      }

      .item-request,
      .item-response {
        background: white;
        width: 9.6vw;
        height: 1.55vw;
        text-align: center;
        line-height: 1.55vw;
        outline: none;
        border: none;
        padding: 0;
        color: #6351e5;
        font-size: 0.7vw;
        border-radius: 0.2vw;
      }

      .item-request:hover,
      .item-response:hover {
        font-size: 0.9;
        font-weight: bold;
      }
    }
  }

  .message-record {

    .message-box {
      //   margin-top: 1vw;
      display: flex;
      justify-content: space-between;
      color: #43447a;
      font-size: 12px;
      font-weight: bold;

      .message-title-node {
        // background: #c5cdf9;
        text-align: center;
      }

      .message-title-request,
      .message-title-response {
        // background: #c5cdf9;
        text-align: center;
      }
    }

    .bg-message {
      background: #f5f6f8;
      width: 100%;
      height: 100%;
      padding: 0.3vw 0.6vw 0.5vw 0.6vw;
      box-sizing: border-box;
      border-radius: 0.5vw;
    }

    .message-title {
      font-weight: 600;
      font-size: 16px;
      color: #43447a;
      text-align: left;
      margin-bottom: 8px;
    }

    .message-title::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      margin: 0 0.4vw;
      border-radius: 50%;
      background: #6769fb;
    }

    -title::before {
      content: "";
      display: inline-block;
      width: 0.5vw;
      height: 0.5vw;
      margin: 0 0.4vw;
      border-radius: 50%;
      background: #6769fb;
    }

    .message-contentList {
      .message-item {
        display: flex;
        justify-content: space-between;
        line-height: 12px;
        height: 12px;
        box-sizing: border-box;

        .message-item-node {
          width: 3.5vw;
          text-align: center;
          color: #43447a;
          font-size: 12px;
        }

        .message-item-request,
        .message-item-response {
          width: 7.8vw;
          text-align: center;
          color: #43447a;
          font-size: 12px;
        }
      }
    }
  }
}

.letter {
  position: absolute;
  color: #67c23a;
  z-index: 100;
}

.n1 {
  animation: flowText1 3s linear infinite;
}

@keyframes flowText1 {
  0% {
    top: 22%;
    left: 33%;
  }

  100% {
    top: 24%;
    left: 40%;
  }
}

.n2 {
  animation: flowText2 3s linear infinite;
}

@keyframes flowText2 {
  0% {
    top: 29%;
    left: 30%;
  }

  100% {
    top: 37%;
    left: 40%;
  }
}

.n3 {
  animation: flowText3 3s linear infinite;
}

@keyframes flowText3 {
  0% {
    top: 22%;
    left: 64%;
  }

  100% {
    top: 25%;
    left: 58%;
  }
}

.n4 {
  animation: flowText4 3s linear infinite;
}

@keyframes flowText4 {
  0% {
    top: 28%;
    left: 68%;
  }

  100% {
    top: 37%;
    left: 58%;
  }
}

.n5 {
  animation: flowText5 3s linear infinite;
}

@keyframes flowText5 {
  0% {
    top: 47%;
    left: 33%;
  }

  100% {
    top: 40%;
    left: 40%;
  }
}

.n6 {
  animation: flowText6 3s linear infinite;
}

@keyframes flowText6 {
  0% {
    top: 56%;
    left: 33%;
  }

  100% {
    top: 51%;
    left: 40%;
  }
}

.n7 {
  animation: flowText7 3s linear infinite;
}

@keyframes flowText7 {
  0% {
    top: 46%;
    left: 64%;
  }

  100% {
    top: 41%;
    left: 57%;
  }
}

.n8 {
  animation: flowText8 3s linear infinite;
}

@keyframes flowText8 {
  0% {
    top: 55%;
    left: 64%;
  }

  100% {
    top: 51%;
    left: 57%;
  }
}